from pydantic import BaseModel


class UserSchema(BaseModel):
    user_name: str
    user_pass: str
    open_id: str = ""
    avatar: str = ""
    gold: int = 0
    carbonic: int = 0
    alloy: int = 0
    ticket: int = 0

    class Config:
        orm_mode = True
